package day05;
import java.util.Arrays;
import java.util.Scanner;

public class PricticeDemo {
    public static void main(String[] args) {
       /* Scanner scan=new Scanner(System.in);
        int Score=0;
        for(int i=1;i<11;i++) {
            int a=(int)(Math.random()*100);
            int b=(int)(Math.random()*100);
            int sum=a+b;
            System.out.println("(" + i + ")" + a + "+" + b + "=" +"?");
            System.out.println("做吧");
            int answer = scan.nextInt();

            if (sum != answer) {
                System.out.print("做错了");
            } else {
                System.out.println("做对了");
                Score += 10;
            }
        }
        System.out.println(Score);
        for(int a=1;a<=9;a++){
        for(int i=1;i<a;i++) {
            System.out.print(i + "*" + a + "=" + i * a + "\t");
        }
        System.out.println();
        }

        int[] de=new int[10];
        int max=de[0];
        for(int i=0;i<de.length;i++){
            de[i]=(int)(Math.random()*100);
            System.out.println(de[i]);
            if(de[i]>max){
                max=de[i];
            }
        }
        System.out.println("最大值为"+max);
        Arrays.sort(de);
       for(int i=0;i<de.length;i++){
           System.out.println(de[i]);
       }
       int[] a=new int[3];
       int[] te=new int[]{12,15,1,6,4,};
       int[] fr;
       fr= new int[]{1};
       int[] gr={12,15,14};
        int sum=0;
        for(int i=1;i<101;i++){
            if(i%2!=1){
                sum=i+sum;
            }
        }
        System.out.println(sum);
        int sun=1;
        for(int i=1;i<9;i++){
            sun=i*sun;
        }
        System.out.println(sun);
        for (int a = 1; a <= 6; a++) {
            for (int i = 1; i <=2 * a - 1; i++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (int i = 1; i <= 6; i++) {
            for (int k = 1; k <= 2 * i - 1; k++) {
                System.out.print("*");
            }
            System.out.println();

        }*/
        int max,min;
        int[] a=new int[10];
        for(int i=1;i<a.length;i++){
            a[i]=(int)(Math.random()*100);
            if(a[0]>a[i]){
                max=a[0];
                min=a[i];

            }
           // System.out.println("最小值为"+min+" "+"最大值为"+max);
        }

    }
}